import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 查询列表
export function listScenicArea(params) {
  return request({
    url: '/console/scenic/area/list',
    method: 'get',
    params: params
  })
}

//新增
export function addScenicArea(data) {
  return request({
    url: '/console/scenic/area/add',
    method: 'post',
    data: data
  })
}

//修改
export function editScenicArea(data) {
  return request({
    url: '/console/scenic/area/update',
    method: 'post',
    data: data
  })
}

//查询单条数据
export function getScenicArea(params) {
  return request({
    url: '/console/scenic/area/getById',
    method: 'get',
    params: params
  })
}

// 删除数据
export function deleteScenicArea(data) {
  return request({
    url: '/console/scenic/area/delete',
    method: 'post',
    data: data
  })
}